﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using bdxyit.com.RecruitmentAppSys.IDAL;
using bdxyit.com.RecruitmentAppSys.DALFactory;
using bdxyit.com.RecruitmentAppSys.Models;
using bdxyit.com.RecruitmentAppSys.ViewModels;

namespace bdxyit.com.RecruitmentAppSys.BLL
{
    public class CompanyPostBLL
    {
        private static readonly ICompanyPostDAL CompanyPostDal = DataAccess.CreateCompanyPost();

        /// <summary>
        /// 获取所有的公司职位
        /// </summary>
        /// <returns></returns>
        public static List<CompanyPost> GetCompanyPost()
        {
            return CompanyPostDal.SelectCompanyPost();
        }

        public static CompanyPost SelectCompanyPostByPostID(string PostID)
        {
            return CompanyPostDal.SelectCompanyPostByPostID(PostID);
        }
        public static bool DeleteCompanyPostByPostID(string PostID)
        {
            return CompanyPostDal.DeleteCompanyPost(PostID);
        }
        public static bool InsertCompanyPost(CompanyPost cmodel)
        {
            return CompanyPostDal.InsertCompanyPost(cmodel);
        }
        public static bool UpdateCompanyPost(CompanyPost cmodel)
        {
            return CompanyPostDal.UpdateCompanyPost(cmodel);
        }

    }
}
